//返回预订界面
function getPart(url,bid,id) { 
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
			}
		}
	}	
	var div=document.getElementById(id);
	var u = url+'?id='+bid;
	xmlhttp.open("post", u, true); 
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				if (xmlhttp.responseText != "") {				
					div.innerHTML = unescape(xmlhttp.responseText);
					start();
				}
			} else {
				div.innerHTML = "data error";
			}
		}
	}
	xmlhttp.setRequestHeader("If-Modified-Since","0"); 
	xmlhttp.send(null);
}

//返回预订界面
function getParts(url,bid,id,time) { 
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
			}
		}
	}	
	var div=document.getElementById(id);
	var u = url+'?id='+bid+'&&date='+time;
	xmlhttp.open("post", u, true); 
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				if (xmlhttp.responseText != "") {				
					div.innerHTML = unescape(xmlhttp.responseText);
					start();
				}
			} else {
				div.innerHTML = "data error";
			}
		}
	}
	xmlhttp.setRequestHeader("If-Modified-Since","0"); 
	xmlhttp.send(null);
}


//返回详细预订情况界面
function getmin(url,bid,id) { 
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
			}
		}
	}	
	var div=document.getElementById(id);
	var u = url+'?id='+bid;
	xmlhttp.open("post", u, true); 
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				if (xmlhttp.responseText != "") {				
					div.innerHTML = unescape(xmlhttp.responseText);
				}
			} else {
				div.innerHTML = "data error";
			}
		}
	}
	xmlhttp.setRequestHeader("If-Modified-Since","0"); 
	xmlhttp.send(null);
}
//进入会议室管理界面
function getbr(url,id) { 
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
			}
		}
	}	
	var div=document.getElementById(id);
	var u = url;
	xmlhttp.open("post", u, true); 
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				if (xmlhttp.responseText != "") {				
					div.innerHTML = unescape(xmlhttp.responseText);
				}
			} else {
				div.innerHTML = "data error";
			}
		}
	}
	xmlhttp.setRequestHeader("If-Modified-Since","0"); 
	xmlhttp.send(null);
}

//进入会议室管理界面
function getserve(id) { 
	var xmlhttp;
	try {
		xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		} catch (e) {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
			}
		}
	}	
	var div=document.getElementById("con");
	var u = "showupServe.vm?id="+id;
	xmlhttp.open("post", u, true); 
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			if (xmlhttp.status == 200) {
				if (xmlhttp.responseText != "") {				
					div.innerHTML = unescape(xmlhttp.responseText);
					$("#b").css({display:"block"});
				}
			} else {
				div.innerHTML = "data error";
			}
		}
	}
	xmlhttp.setRequestHeader("If-Modified-Since","0"); 
	xmlhttp.send(null);
}